package com.wentao.thisService.mapper;

import com.wentao.thisService.model.UserEntity;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {

    public List<UserEntity> Search(UserEntity entity);

    public List<UserEntity> SearchPage(@Param("entityItem") UserEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void Update(@Param("entityItem") UserEntity entity, @Param("valueItem") UserEntity val);

    public void Insert(UserEntity entity);

    public List<UserEntity> SearchAut(UserEntity entity);

    public List<UserEntity> SearchPageAut(@Param("entityItem") UserEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void UpdateAut(@Param("entityItem") UserEntity entity, @Param("valueItem") UserEntity val);

    public IntResultEntity Count(UserEntity entity);

    public IntResultEntity CountAut(UserEntity entity);

    void UpdateById(UserEntity entity);
}